include ../makeconfig

INCLUDEDIR += $(SRCINCLUDE)

OBJS	=nand_flash.o uart.o clock.o io.o \
	lcd.o timer.o touch_screen.o watchdog.o\
	cpu.o dma.o memory.o usb.o sdi.o iis.o

../device.o:	$(OBJS)
	$(LD) $(OBJS) -r -o ../device.o
%.o:%.c
	$(GCC) $(CFLAGS) $< -c -o $@
%.o:%.s
	$(AS) $(AFLAGS) $< -o $@

clean:
	rm -f *.o

clock.o:clock.c ../include/s3c2410/s3c2410.h ../include/s3c2410/clock.h
cpu.o:cpu.c ../include/s3c2410/s3c2410.h ../include/s3c2410/cpu.h
io.o:io.c ../include/s3c2410/s3c2410.h ../include/s3c2410/io.h
lcd.o:lcd.c ../include/s3c2410/s3c2410.h ../include/s3c2410/lcd.h
nand_flash.o:nand_flash.c ../include/s3c2410/s3c2410.h \
 ../include/s3c2410/nand_flash.h
serial.o:serial.c ../include/s3c2410/s3c2410.h ../include/s3c2410/serial.h
timer.o:timer.c ../include/s3c2410/s3c2410.h ../include/s3c2410/timer.h \
 ../include/s3c2410/cpu.h
touch_screen.o:touch_screen.c ../include/s3c2410/s3c2410.h \
 ../include/s3c2410/touch_screen.h ../include/kernel/irq.h
watchdog.o:watchdog.c ../include/s3c2410/s3c2410.h ../include/s3c2410/watchdog.h
dma.o:dma.c ../include/s3c2410/s3c2410.h ../include/s3c2410/dma.h
memory.o:memory.c ../include/s3c2410/memory.h ../include/s3c2410/s3c2410.h 
usb.o:usb.c ../include/s3c2410/usb.h ../include/s3c2410/s3c2410.h 
sdi.o:sdi.c ../include/s3c2410/sdi.h ../include/s3c2410/s3c2410.h
iis.o:iis.c ../include/s3c2410/iis.h ../include/s3c2410/s3c2410.h